package com.lzj.server.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lzj.server.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Schema(name = "sys_permission", description = "权限表")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_permission")
public class Permission extends BaseEntity {
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "权限id", hidden = true)
    Long id;
    @TableField("permission_name")
    String permissionName;

    @TableField("permission_code")
    String permissionCode;

    @TableField("description")
    String description;
}
